package com.yu.smsinterceptor.service;

import com.yu.smsinterceptor.dao.MessageDao;
import com.yu.smsinterceptor.mode.Message;

import java.util.List;

public class MessageService {

    private MessageDao dao = new MessageDao();

    public void save(Message m) {
        dao.save(m);
    }

    public Message get(Long id) {
        return dao.get(id);
    }

    public List<Message> list() {
        return dao.list();
    }

    public void delete(Long id) {
        dao.delete(id);
    }
}
